
function blinklink() {
  var max = 24;
  for(var i = 0; i < max; i++)
    if ($('#blink').attr('class') == 'loading'+i) {
      if(i < max-1)
        $('#blink').attr('class','loading'+(i+1));
      else
        $('#blink').attr('class','loading0');
      max = 0;
    }
  timer = setTimeout("blinklink()", 100);
}
function stoptimer() {
  clearTimeout(timer);
}
blinklink();
